<template>
  <div></div>
</template>
<script>
  import Config from '~/config';
  let {Local} = Config;
  export default {
    fetch (context) {
      let { store, redirect } = context;
      if (store.state.USER.authUser) {
        redirect(`/${Local.name}`);
      } else {
        redirect(`/${Local.name}/login`);
      }
    },
  };
</script>
